package com.thread.volatiledemo;

/**
 * @Author milian
 * @Date 2021/7/28 0028 15:03
 */
public class MyThreadDemo2 extends Thread{

    public MyThreadDemo2() {
    }

    public MyThreadDemo2(String name) {
        super(name);
    }

    @Override
    public void run() {
        try {
            Thread.sleep(10);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        Money.money = 90000;
    }
}
